package com.isoftstone.project.system.service.impl;


import com.isoftstone.framework.domain.Page;
import com.isoftstone.project.system.domain.SysLogOperate;
import com.isoftstone.project.system.mapper.SysLogOperateMapper;
import com.isoftstone.project.system.service.ISysLogService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by as on 2017/10/24.
 */
@Service
public class SysLogService implements ISysLogService {

    @Autowired
    SysLogOperateMapper sysLogOperateMapper;

    /*
    操作日志
     */
    @Override
    public void insertOperate(SysLogOperate sysLogOperate) throws Exception {
        sysLogOperateMapper.insert(sysLogOperate);
    }

    @Override
    public List<SysLogOperate> getlogoperatelistPage(Page page) throws Exception {
        return sysLogOperateMapper.getlogoperatelistPage(page);
    }

    @Override
    public List<SysLogOperate> getlogoperateAll(String userName, String mintime, String maxtime) throws Exception {
        return sysLogOperateMapper.getlogoperateAll(userName,mintime,maxtime);
    }
}
